package com.ytclub.practice.api.util;

import java.util.List;
import java.util.Map;

/**
 * 集合工具类
 *
 * @author: HuangQi
 * @date: Created in 20:53 2023/12/21
 * @description: 集合工具类
 */
public class CollectionUtils {

    public static boolean isEmpty(List list){
        return list == null || list.isEmpty();
    }

    public static boolean isNotEmpty(List list){
        return !isEmpty(list);
    }


    public static boolean isEmpty(Map<?, ?> map){
        return map == null || map.isEmpty();
    }

    public static boolean isNotEmpty(Map<?, ?> map){
        return !isEmpty(map);
    }
}
